package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DzbqBusinessusersMapper;
import com.ruoyi.system.domain.DzbqBusinessusers;
import com.ruoyi.system.service.IDzbqBusinessusersService;

/**
 * 客户信息Service业务层处理
 * 
 * @author tianxingxia
 * @date 2025-02-07
 */
@Service
public class DzbqBusinessusersServiceImpl implements IDzbqBusinessusersService 
{
    @Autowired
    private DzbqBusinessusersMapper dzbqBusinessusersMapper;

    /**
     * 查询客户信息
     * 
     * @param userId 客户信息主键
     * @return 客户信息
     */
    @Override
    public DzbqBusinessusers selectDzbqBusinessusersByUserId(Integer userId)
    {
        return dzbqBusinessusersMapper.selectDzbqBusinessusersByUserId(userId);
    }

    /**
     * 查询客户信息列表
     * 
     * @param dzbqBusinessusers 客户信息
     * @return 客户信息
     */
    @Override
    public List<DzbqBusinessusers> selectDzbqBusinessusersList(DzbqBusinessusers dzbqBusinessusers)
    {
        return dzbqBusinessusersMapper.selectDzbqBusinessusersList(dzbqBusinessusers);
    }

    /**
     * 新增客户信息
     * 
     * @param dzbqBusinessusers 客户信息
     * @return 结果
     */
    @Override
    public int insertDzbqBusinessusers(DzbqBusinessusers dzbqBusinessusers)
    {
        return dzbqBusinessusersMapper.insertDzbqBusinessusers(dzbqBusinessusers);
    }

    /**
     * 修改客户信息
     * 
     * @param dzbqBusinessusers 客户信息
     * @return 结果
     */
    @Override
    public int updateDzbqBusinessusers(DzbqBusinessusers dzbqBusinessusers)
    {
        return dzbqBusinessusersMapper.updateDzbqBusinessusers(dzbqBusinessusers);
    }

    /**
     * 批量删除客户信息
     * 
     * @param userIds 需要删除的客户信息主键
     * @return 结果
     */
    @Override
    public int deleteDzbqBusinessusersByUserIds(Integer[] userIds)
    {
        return dzbqBusinessusersMapper.deleteDzbqBusinessusersByUserIds(userIds);
    }

    /**
     * 删除客户信息信息
     * 
     * @param userId 客户信息主键
     * @return 结果
     */
    @Override
    public int deleteDzbqBusinessusersByUserId(Integer userId)
    {
        return dzbqBusinessusersMapper.deleteDzbqBusinessusersByUserId(userId);
    }
}
